Perl: Try setting the @valid_uri array to
contain just '/':
@valid_uri = ('/');
C++: Set num_invalid_uri and num_valid_uri
to 0 and clear the values of valid_uri and
invalid_uri:
const int num_valid_uri = 0;
const char valid_uri[num_valid_uri][128] = { };
const int num_invalid_uri = 0;
const char invalid_uri[num_invalid_uri][128] = { };
Perl: If you think this is right, and you
still get this error, it may mean your server
is not passing the DOCUMENT_URI environment
variable, in which case the script probably
won't work. However, one way to tell if you
have the @valid_uri variable set right is to
change this to:
@valid_uri = (".");
Also, make sure the @invalid_uri line is
commented out as such:
# @invalid_uri = ('');
If you are still getting this error, then
try changing the following line:
&check_uri;
to
# &check_uri;
If the counter still doesn't work, it may
not be compatible with your Web Server.